package com.tyrael.kharazim.basicdata.app.dto.customer.communication;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author Tyrael Archangel
 * @since 2024/1/24
 */
@Data
public class AddCustomerCommunicationLogRequest {

    @Schema(description = "会员编码")
    @NotBlank(message = "请指定会员")
    private String customerCode;

    @Schema(description = "客服编码")
    private String serviceUserCode;

    @Schema(description = "沟通类型字典key")
    @NotBlank(message = "请指定沟通类型")
    private String typeDictKey;

    @Schema(description = "沟通评价字典key")
    @NotBlank(message = "请指定沟通评价")
    private String evaluateDictKey;

    @Schema(description = "沟通内容", maxLength = 1024)
    @Size(max = 1024, message = "沟通内容超长")
    private String content;

    @Schema(description = "沟通时间")
    private LocalDateTime communicationTime;
}
